package com.obixlabs.kalua.datacache;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.obixlabs.commons.process.HeartbeatThread;

public class Server {
	public static void main(String[] args) throws InterruptedException {
		@SuppressWarnings("resource")
		ApplicationContext context = 
				new ClassPathXmlApplicationContext("cache-server-ctx.xml");
		
		HeartbeatThread heartbeatThread = 
				context.getBean("heartbeatThread", HeartbeatThread.class);		
		heartbeatThread.join();		
	}
}